[getMilliseconds | Returns the milliseconds value in a Date object using local time]
getMilliseconds()|
[getMinutes | Returns the minutes value in a Date object using local time]
getMinutes()|
[getMonth | Returns the minutes value in a Date object using local time]
getMinutes()|
[GetParentFolderName | Returns a string containing the name of the parent folder of the last file or folder in a specified path]
GetParentFolderName(|path)
[getSeconds | Returns the seconds value in a Date object using local time]
getSeconds()|
[GetSpecialFolder | Returns the special folder specified]
GetSpecialFolder(|folderspec)
[GetTempName | Returns a randomly generated temporary file or folder name that is useful for performing operations that require a temporary file or folder]
GetTempName()|
[getTime | Returns the time value in a Date object]
getTime()|
[getTimezoneOffset | Returns the difference in minutes between the time on the host computer and Universal Coordinated Time (UTC)]
getTimezoneOffset()|
[getUTCDate | Returns the date in a Date object using Universal Coordinated Time (UTC)]
getUTCDate()|
[getUTCDay | Returns the day of the week value in a Date object using Universal Coordinated Time (UTC)]
getUTCDay()|
[getUTCFullYear | Returns the year value in a Date object using Universal Coordinated Time (UTC)]
getUTCFullYear()|
[getUTCHours | Returns the hours value in a Date object using Universal Coordinated Time (UTC)]
getUTCHours()|
[getUTCMilliseconds | Returns the milliseconds value in a Date object using Universal Coordinated Time (UTC)]
getUTCHours()|
[getUTCMinutes | Returns the minutes value in a Date object using Universal Coordinated Time (UTC)]
getUTCMinutes()|
[getUTCMonth | Returns the month value value in a Date object using Universal Coordinated Time (UTC)]
getUTCMonth()|
[getUTCSeconds | Returns the seconds value in a Date object using Universal Coordinated Time (UTC)]
getUTCSeconds()|
[getVarDate | Returns the VT_DATE value in a Date object]
getVarDate()|
[indexOf | Returns the character position where the first occurrence a substring occurs within a String object]
indexOf(|substring, startindex)
[isFinite | Returns a Boolean value that indicates if a supplied number is finite]
isFinite(|number)
[isNaN | Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number)]
isNaN(|numvalue)
[italics | Places HTML <I> tags around text in a String object]
italics()|
[item | Returns the current item in the collection]
item()|
[Items | Returns an array containing all the items in a Dictionary object]
Items()|
[join | Returns a String object consisting of all the elements of an array concatenated together]
join(|separator)
[Keys | Returns an array containing all existing keys in a Dictionary object]
Keys()|
[lastIndexOf | Returns the last occurrence of a substring within a String object]
lastIndexOf(|substring, startindex)
[lbound | Returns the lowest index value used in the specified dimension of a VBArray]
lbound(|dimension)
[link | Places an HTML anchor with an HREF attribute around the text in a String object]
link(|linkstring)
[log | Returns the natural logarithm of a number]
Math.log(|number)
[match | Returns, as an array, the results of a search on a string using a supplied Regular Expression object]
match(|rgExp)
[max | Returns the greater of two supplied numeric expressions]
Math.max(|number1, number2)
[min | Returns the lesser of two supplied numbers]
Math.min(|number1, number2)
[Move | Moves a specified file or folder from one location to another]
Move(|destination)
[MoveFile | Moves one or more files from one location to another]
MoveFile(|source, destination);
[moveFirst | Resets the current item in the collection to the first item]
moveFirst()|
[MoveFolder | Moves one or more folders from one location to another]
MoveFolder(|source, destination)
[moveNext | Moves the current item to the next item in the collection]
moveNext()|
[OpenAsTextStream | Opens a specified file and returns a TextStream object that can be used to read from, write to, or append to the file]
OpenAsTextStream(|[iomode, [format]])
[OpenTextFile | Opens a specified file and returns a TextStream object that can be used to read from, write to, or append to the file]
[valueOf | Returns the primitive value of the specified object]
valueOf()|
[Write | Writes a specified string to a TextStream file]
Write(|string)
[WriteBlankLines | Writes a specified number of newline characters to a TextStream file]
WriteBlankLines(|lines)
[WriteLine | Writes a specified string and newline character to a TextStream file]
WriteLine(|[string])
; Properties
[arguments | Returns an array containing each argument passed to the currently executing function]
arguments[|]
[AtEndOfLine | Returns true if the file pointer is positioned immediately before the end-of-line marker in a TextStream file; false if it is not. Read-only]
AtEndOfLine|
[AtEndOfStream | Returns true if the file pointer is at the end of a TextStream file; false if it is not. Read-only]
AtEndOfStream|
[Attributes | Sets or returns the attributes of files or folders. Read/write or read-only, depending on the attribute]
Attributes |[= newattributes]
[AvailableSpace | Returns the amount of space available to a user on the specified drive or network share]
AvailableSpace|
[Column | Read-only property that returns the column number of the current character position in a TextStream file]
Column|
[CompareMode | Sets and returns the comparison mode for comparing string keys in a Dictionary object]
CompareMode|[ = compare]
[constructor | Specifies the function that creates an object]
constructor|
[Count | Returns the number of items in a collection or Dictionary object. Read-only]
Count|
[DateCreated | Returns the date and time that the specified file or folder was created. Read-only]
DateCreated|
[DateLastAccessed | Returns the date and time that the specified file or folder was last accessed. Read-only]
DateLastAccessed|
[DateLastModified | Returns the date and time that the specified file or folder was last modified. Read-only]
DateLastModified|
[description | Returns or sets the descriptive string associated with a specific error]
description| [= stringexpression]
[Drive | Returns the drive letter of the drive on which the specified file or folder resides. Read-only]
Drive|
[DriveLetter | Returns the drive letter of a physical local drive or a network share. Read-only]
DriveLetter|
[Drives | Returns a Drives collection consisting of all Drive objects available on the local machine]
Drives|
[DriveType | Returns a value indicating the type of a specified drive]
DriveType|
[E | Returns Euler's constant, the base of natural logarithms. The E property is approximately equal to 2.718]
Math.E|
[Files | Returns a Files collection consisting of all File objects contained in the specified folder, including those with hidden and system file attributes set]
Files|
[FileSystem | Returns the type of file system in use for the specified drive]
FileSystem|
[FreeSpace | Returns the amount of free space available to a user on the specified drive or network share. Read-only]
FreeSpace|
[index | Returns the character position where the first successful match begins in a searched string]
RegExp.index|
[Infinity | Returns an initial value of Number.POSITIVE_INFINITY]
Infinity|
[input | Returns the string against which a search was performed. Read-only]
RegExp.input|
[isFinite | Returns a Boolean value that indicates if a supplied number is finite]
isFinite(|number)
[IsReady | Returns True if the specified drive is ready; False if it is not]
IsReady|
[IsRootFolder | Returns True if the specified folder is the root folder; False if it is not]
IsRootFolder|
[Item | Sets or returns an item for a specified key in a Dictionary object. For collections, returns an item based on the specified key. Read/write]
Item(|key)[ = newitem]
[Key | Sets a key in a Dictionary object]
Key(|key) = newkey
[lastIndex | Returns the character position where the last successful match begins in a searched string]
RegExp.lastIndex|
[length(Arr) | Returns an integer value one higher than the highest element defined in an array]
length|
[length(Fcn) | Returns the number of arguments defined for a function]
length|
[length(Str) | Returns the length of a String object]
length|
[Line | Read-only property that returns the current line number in a TextStream file]
Line|
[LN2 | Returns the natural logarithm of 2]
Math.LN2|
[LN10 | Returns the natural logarithm of 10]
Math.LN10|
[LOG2E | Returns the base-2 logarithm of e, Euler's constant]
LOG2E|
[LOG10E | Returns the base-10 logarithm of e, Euler's constant]
LOG10E|
[MAX_VALUE | Returns the largest number representable in JScript. Equal to approximately 1.79E+308]
MAX_VALUE|
[MIN_VALUE | Returns the number closest to zero representable in JScript. Equal to approximately 2.22E-308]
MIN_VALUE|
[NaN(Gl) | Returns the special value NaN indicating that an expression is not a number]
NaN|
[NaN(Num) | A special value that indicates an arithmetic expression returned a value that was not a number]
NaN|
[Name | Sets or returns the name of a specified file or folder. Read/write]
Name |[= newname]
[NEGATIVE_INFINITY | Returns a value more negative than the largest negative number (-Number.MAX_VALUE) representable in JScript]
NEGATIVE_INFINITY|
[number | Returns or sets the numeric value associated with a specific error. The Error object's default property is number]
number| [= errornumber]
[ParentFolder | Returns the folder object for the parent of the specified file or folder. Read-only]
ParentFolder|
[Path | Returns the path for a specified file, folder, or drive]
Path|
[PI | Returns the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793]
Math.PI|
[POSITIVE_INFINITY | Returns a value larger than the largest number (Number.MAX_VALUE) that can be represented in JScript]
POSITIVE_INFINITY|
[prototype | Returns a reference to the prototype for a class of objects]
prototype|
[RootFolder | Returns a Folder object representing the root folder of a specified drive. Read-only]
RootFolder|
[search | Returns the position of the first substring match in a regular expression search]
search(|rgexp)
[SerialNumber | Returns the decimal serial number used to uniquely identify a disk volume]
SerialNumber|
[ShareName | Returns the network share name for a specified drive]
ShareName|
[ShortName | Returns the short name used by programs that require the earlier 8.3 naming convention]
ShortName|
[ShortPath | Returns the short path used by programs that require the earlier 8.3 file naming convention]
ShortPath|
[Size | For files, returns the size, in bytes, of the specified file. For folders, returns the size, in bytes, of all files and subfolders contained in the folder]
Size|
[source | Returns a copy of the text of the regular expression pattern. Read-only]
source|
[SQRT1_2 | Returns he square root of 0.5, or one divided by the square root of 2]
Math.SQRT1_2|
[SQRT2 | Returns the square root of 2]
Math.SQRT2|
[SubFolders | Returns a Folders collection consisting of all folders contained in a specified folder, including those with hidden and system file attributes set]
SubFolders|
[TotalSize | Returns the total space, in bytes, of a drive or network share]
TotalSize|
[Type | Returns information about the type of a file or folder. For example, for files ending in .TXT, "Text Document" is returned]
Type|
[VolumeName | Sets or returns the volume name of the specified drive. Read/write]
VolumeName |[= newname]
; Functions
[GetObject | Returns a reference to an Automation object from a file]
GetObject(|[pathname] [, class])
[ScriptEngine | Returns a string representing the scripting language in use]
ScriptEngine()|
[ScriptEngineBuildVersion | Returns the build version number of the scripting engine in use]
ScriptEngineBuildVersion()|
[ScriptEngineMajorVersion | Returns the major version number of the scripting engine in use]
ScriptEngineMajorVersion()|
[ScriptEngineMinorVersion | Returns the minor version number of the scripting engine in use]
ScriptEngineMinorVersion()|
; Objects
[ActiveXObject | Enables and returns a reference to an Automation object]
var | = new ActiveXObject("servername.typename"[, "location"])
[Array | Provides support for creation of arrays of any data type]
new Array(|);
[Array() | Provides support for creation of arrays of any data type]
var | = new Array();
[Array(size) | Provides support for creation of arrays of any data type]
var | = new Array(size);
[Array(e0..en) | Provides support for creation of arrays of any data type]
var | = new Array(element0, ..., elementn);
[Boolean | Creates a new Boolean value]
var | = new Boolean(boolvalue)
[Date | Enables basic storage and retrieval of dates and times]
var | = new Date()
[Date(UCT) | Enables basic storage and retrieval of dates and times]
var | = new Date(dateVal)
[Date(y, m, ...) | Enables basic storage and retrieval of dates and times]
var | = new Date(year, month, date[, hours[, minutes[, seconds[,ms]]]])
[Dictionary | Object that stores data key, item pairs]
var | = new ActiveXObject("Scripting.Dictionary")
[Enumerator | Enables enumeration of items in a collection]
var | = new Enumerator(collection)
[Error | Contains information about errors]
var | = new Error()
[Error(num) | Contains information about errors]
var | = new Error(number)
[Error(num, desc) | Contains information about errors]
var | = new Error(number, description)
[FileSystemObject | Provides access to a computer's file system]
var | = new ActiveXObject("Scripting.FileSystemObject")
[Function | Creates a new function]
function |functionname( [argname1 [, ... argnameN]] )
{
}
[Function(call) | Creates a new function]
var |functionname = new Function( [argname1, [... argnameN,]] body );
[Math | An intrinisic object that provides basic mathematics functionality and constants]
Math|[.{property | method}]
[Number | An object representation of the number data type and placeholder for numeric constants]
var | = new Number(value);
[Object | Provides functionality common to all JScript objects]
var | = new Object([value]);
[RegExp | Stores information on regular expression pattern searches]
RegExp.|propertyname
[Regular Expression | Contains a regular expression pattern]
var |regularexpression = /pattern/[switch]
[Regular Expression() | Contains a regular expression pattern]
var |regularexpression = new RegExp("pattern",["switch"])
[String | Allows manipulation and formatting of text strings and determination and location of substrings within strings]
|StringObj[.method]
[VBArray | Provides access to Visual Basic safe arrays]
var | = new VBArray(safeArray);
; Statements
[do...while | Executes a statement block once, and then repeats execution of the loop until a condition expression evaluates to false]
do {
|
} while (expression);
[for | Executes a block of statements for as long as a specified condition is true]
for (|initialization; test; increment) {
}
[for...in | Executes one or more statements for each property of an object, or each element of an array]
for (|variable in [object | array]) {
}
[@if | Conditionally executes a group of statements, depending on the value of an expression]
@if (condition1)
text1
\[@elif (condition2)
text2]
\[@else
text3]
@end
[if | Conditionally executes a group of statements, depending on the value of an expression]
if (|){
}
[if...else | Conditionally executes a group of statements, depending on the value of an expression]
if (|condition){
}
else {
}
[Labeled | Provides an identifier for a statement]
|label :
statement
[@set | Creates variables used with conditional compilation statements]
@set @|varname = term
[switch | Enables the execution of one or more statements when a specified expression's value matches a label]
switch (|expression) {
case label : statementlist
case label : statementlist
...
default : statementlist
}
[throw | Generates an error condition that can be handled by a try...catch statement]
throw |exception
[try...catch | Implements error handling for JScript]
try {
tryStatements
}
catch(exception){
catchStatements
}
[var | Declares a variable]
var |variable [ = value ] [, variable2 [ = value2], ...]
[while | Executes a statement until a specified condition is false]
while (expression){
statements
}
[with | Establishes the default object for a statement]
with (|object){
statements
}
; Operators
[instanceof | Returns a Boolean value that indicates whethor or not an object is an instance of a particular class]
|result = object instanceof class
; Function shotcuts
[doc.write | Display information - parameter ]
document.write(|)
[doc.writeln | Display information - parameter ]
document.writeln(|)
; others
[SCRIPT | Script description ]
<SCRIPT LANGUAGE="JScript">
|
</SCRIPT>
[window.alert | Display message box ]
window.alert(|)
[window.confirm | Display message box with Yes, No buttons]
window.confirm(|)
[window.prompt | Display prompt with text field in which the user can type an answer in response to your prompt]
window.prompt(|)
[Create files | Short sample to create files]
var |fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.CreateTextFile("c:\\testfile.txt", true);